package android.slc.module.component.player.base

import android.slc.module.component.player.constant.MediaPlayerStatus
import javafx.beans.property.SimpleObjectProperty

/**
 * @author slc
 * @date 2023/10/9
 **/
class SysMediaPlayerCompat {

    //播放状态
    val playerStatusProperty = SimpleObjectProperty(MediaPlayerStatus.UNKNOWN)

    fun setPlayerStatus(mediaPlayerStatus: MediaPlayerStatus) {
        playerStatusProperty.value = mediaPlayerStatus
    }

    fun setPlayerStatus(): MediaPlayerStatus {
        return playerStatusProperty.value
    }
}